home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re ODPart --> BaseShape < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODPart --> BaseShape
  2. Sent:        4/11/96 3:20 PM
  3. Received:    4/11/96 3:31 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I want the (draw-based container) to draw lines between 
  9. >these ODParts (not wrappers), but have problems in finding
  10. >their bounding rects/positions in the containing part. 
  11. >I'm shure there is a easy solution to this, but I'm somehow
  12. >getting to close and messing things up (not having the complete
  13. >picture of the graphical model of ODF+OD, which is wery well
  14. >documented indeed).
  15.  
  16. I am not sure I understand exactly what your are trying to do but I can 
  17. try. If you have based your editor on ODFDraw and you want to know the 
  18. position and size of embedded frames just look at CProxyShape which is a 
  19. subclass of CBaseShape. CProxyShape like any other shape in ODFDraw has a 
  20. bounding box you can get it by calling GetRectGeometry (which is defined 
  21. in CBoundedShape).
  22.  
  23.  
  24. .......................................................................
  25.  Henri Lamiraux                                      lamiraux@apple.com
  26.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  27. .......................................................................
  28.  
  29.  
  30.